diff --git a/index.phtml b/index.phtml index 20d465a..e94ea08 100644 --- a/index.phtml +++ b/index.phtml @@ -1,87 +1,87 @@ - + "CDRTool_Session", "auth" => "CDRTool_Auth", "perm" => "CDRTool_Perm") ); $loginname=$auth->auth["uname"]; $title="Legal notice"; $db = new DB_CDRTool(); $query=sprintf("select * from settings where billing_party = '%s' and var_module= 'login' and var_name = 'I_agree_with_license'",addslashes($loginname)); if ($db->query($query)) { if ($db->num_rows()) { $refreshURL='callsearch.phtml'; $refreshTime=0; } } if (is_readable("/etc/cdrtool/local/header.phtml")) { include_once("/etc/cdrtool/local/header.phtml"); } else { include_once("header.phtml"); } $layout = new pageLayoutLocal(); $layout->showHeader(); $layout->showLegalNotice(); $layout->showFooter(); page_close(); } else { $Setup = new SETUP (); $Setup->showIntro(); } class SETUP { function showIntro() { print "
You must first setup php, apache and to create the cdrtool database. Detailed installation instructions are available in doc/INSTALL.txt
Once the database is available, create the cdrtool configuration file by copying the sample configuration file:
cp setup/global.inc.simple.sample /etc/cdrtool/global.inc
Then edit the configuration file global.inc to reflect your platform setup. This is the content of the current sample configuration file: "; print "
"; $fp=fopen("setup/global.inc.simple.sample",r); while ($buffer = fgets($fp,1024)) { if (!preg_match("/(<\?)|(\?>)/",$buffer)) { print "$buffer"; } } print ""; } } print " "; ?> diff --git a/logout.phtml b/logout.phtml index 857b3c2..a9ae402 100644 --- a/logout.phtml +++ b/logout.phtml @@ -1,29 +1,32 @@ - + "CDRTool_Session", - "auth" => "CDRTool_Auth", - "perm" => "CDRTool_Perm")); +page_open( + array( + "sess" => "CDRTool_Session", + "auth" => "CDRTool_Auth", + "perm" => "CDRTool_Perm" + ) +); -$loginname=$auth->auth["uname"]; +$loginname = $auth->auth["uname"]; $auth->logout(); $sess->delete(); -$title="Logout"; +$title = "Logout"; if (is_readable("/etc/cdrtool/local/header.phtml")) { include("/etc/cdrtool/local/header.phtml"); } else { include("header.phtml"); } $layout = new pageLayoutLocal(); $layout->showLogout($loginname); $layout->showFooter(); print "